﻿using AdminSystem.Application.Commands.BreedCommands;
using AdminSystem.Application.Commands.lmgCommands;
using AdminSystem.Application.Commands.TraceabilityCommands;
using AdminSystem.Domain.Entities;
using AutoMapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AdminSystem.Application.Mapper
{
    public class Mapping : Profile
    {
        public Mapping()
        {
            CreateMap<Traceability, TraceabilityAddCommand>().ReverseMap();
            CreateMap<Traceability, TraceabilityUpdCommand>().ReverseMap();
            CreateMap<Traceability, TraceabilityDelCommand>().ReverseMap();

            CreateMap<Breed, BreedAddCommand > ().ReverseMap();
            CreateMap<Breed, BreedUpdCommand>().ReverseMap();

            CreateMap<Images, lmgAddCommand>().ReverseMap();
            CreateMap<Images, lmgDelCommand>().ReverseMap();

        }
    }
}
